package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


//在springboot启动类上加上@ImportResource(locations = {"classpath:kaptcha/kaptcha.xml"})，
//        加了这个注解，springboot就会去加载kaptcha.xml文件。注意kaptcha.xml的路径不要写错，
//        classpath在此处是resources目录。
@ImportResource(locations = {"classpath:kaptcha/kaptcha.xml"})
@SpringBootApplication(scanBasePackages = {"com.example.demo.common.config"})
@MapperScan("com.example.demo.repository")
@EnableSwagger2

public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
